/*
 *  levelUpGame - BackgroundView.h
 *  Copyright 2011 W. Reckman. All rights reserved.
 */
#ifndef BACKGROUND_VIEW_H
#define BACKGROUND_VIEW_H

#include "ofImage.h"
#include "Settings.h"

class ofxAlphaVideoPlayer;
class LevelUpApp;


class BackgroundView {
public:
	explicit BackgroundView( const LevelUpApp& appRef_ );
	~BackgroundView();
	
	void setup();
	void update();
	void draw();
	
	float getBackgroundPosition() const;
	float getFacadePosition() const;
	
	void setBackgroundPosition( float pos_ );
	void setFacadePosition( float pos_ );
	
	void setBackgroundSpeed( float speed_ );
	void setFacadeSpeed( float speed_ );
	
private:
	const Settings& s;
	const LevelUpApp& appRef;
	const GameModel& game;
	
	bool bgVideoDisabled, facadeVideoDisabled;
	bool bgVideoHasMirrorCopy, facadeVideoHasMirrorCopy;
	
	mutable ofxAlphaVideoPlayer* bgVideo;
	mutable ofxAlphaVideoPlayer* facadeVideo;
};

#endif /* ! BACKGROUND_VIEW_H */
